package ihm.actions;

import java.awt.Container;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class CloseFrameAction implements ActionListener{

  private Window parent;
  
  public CloseFrameAction(Container parent)
  {
    this.parent = (Window) parent;
  }
  @Override
  public void actionPerformed(ActionEvent e) {
    parent.dispose();
  }

}
